package com.licheedev.glide_qrcode;

import android.content.Context;
import androidx.annotation.NonNull;
import com.bumptech.glide.Glide;
import com.bumptech.glide.Registry;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.LibraryGlideModule;
import java.nio.ByteBuffer;

@GlideModule
public final class QrCodeGlideModule extends LibraryGlideModule {
    @Override
    public void registerComponents(@NonNull Context context, @NonNull Glide glide,
        @NonNull Registry registry) {
        registry.append(QrCode.class, ByteBuffer.class, new QrCodeModuleLoader.Factory());
    }
}
